//; ---------------------------------------------------------------------------
//; Object (ID) - OBJECT
//; ---------------------------------------------------------------------------

#include "(OBJECT).h"

#include "../sprite.h"
#include "../objectsystemNEWER.h"

static object *obj;

//EXTERN DEFINITIONS HERE


//; ---------------------------------------------------------------------------
//; Animation script - (OBJECT)
//; ---------------------------------------------------------------------------

//; ---------------------------------------------------------------------------
//; Sprite mappings - (OBJECT)
//; ---------------------------------------------------------------------------

//==========

void (*OBJECT_Index[1])() = { OBJECT_Main };

//OBJECT:					; XREF: Obj_Index
void OBJECT(object *_obj)
{
    obj = _obj;

    //moveq	#0,d0
    //move.b	obRoutine(a0),d0
    byte routine = obj->Routine/2;

    //move.w	Ring_Index(pc,d0.w),d1
    //jmp	Ring_Index(pc,d1.w)
    (*OBJECT_Index[routine])();
}

//; ===========================================================================

//OBJECT_Main:	; Routine 0
void OBJECT_Main()
{
    //FIRST ROUTINE GOES HERE  
}
